package com.company.project.search.engine;

import com.alibaba.fastjson.JSONArray;

import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

public abstract class AbstractE {

    public static final class Category {
        public String id;
        public String name;

        public Category(String _id, String _name) {
            this.id = _id;
            this.name = _name;
        }
    }

    protected static final Executor mThreadPool = Executors.newFixedThreadPool(1024);

    protected ICallBack callback;

//    @Resource
//    protected SearchService searchService;

    public abstract void search(Param p);

    public void setCacheCallBack(ICallBack _function) {
        this.callback = _function;
    }

    public abstract JSONArray provideCategory();


}
